package com.sky.mapper.admin.user;

import com.sky.pojo.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
@Mapper

public interface UserMapper {

    /**
     * 根据openId查询用户信息
     * */
    @Select("select * from user where openid= #{openId}")
    User selectByOpenId(String openId);

    /**
     * 将用户的信息保存到数据库
     * **/
    void save(User user);
}